<?php
	class LinkList extends Element{
		public function __construct($class){
			$this->class = $class;
		}
		
		public function getCode(){
			$this->code = "<ul class='".$this->class."'>" . $this->code . "</ul>";
			return $this->code;
		}
		
		public function addLink($text, $url, $image){
			$this->code = $this->code . "<a href='" . $url . "'>
											<li>".$image->getCode() . $text . "</li>
										</a>";
		}
		
		public function setClass($class){
			$this->class = $class;
		}
		
		public function getClass(){
			return $this->class;
		}
	}
?>